public class text5 {
    public static void main(String[] args) {
        int[]B1={1,9,8,3};
        for (int i = 0; i < B1.length; i++) {
            B1[i]=B1[i]+5;
        }
        for (int i = 0; i < B1.length; i++) {
            B1[i]=B1[i]%10;

        }
        for (int i = 0,j= B1.length-1; i < j; i++,j--) {
            int temp = B1[i];
            B1[i] = B1[j];
            B1[j] = temp;

        }
        for (int i = 0; i < B1.length; i++) {
            System.out.print(B1[i]);
        }

    }
}
